<?php /* Smarty version Smarty-3.1.11, created on 2013-06-14 15:56:40
         compiled from "templates/bootstrap/dov_control.tpl" */ ?>
<?php /*%%SmartyHeaderCode:137697402951bb01c58491b8-70556674%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0d000795bd7d632eef8e39a305229aa32697ee9a' => 
    array (
      0 => 'templates/bootstrap/dov_control.tpl',
      1 => 1371210996,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '137697402951bb01c58491b8-70556674',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_51bb01c58eebe7_04502135',
  'variables' => 
  array (
    'user_mode' => 0,
    'GetArrayDover' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51bb01c58eebe7_04502135')) {function content_51bb01c58eebe7_04502135($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['user_mode']->value!=''){?>
    <div class="row-fluid">
        <div class="span12">   
<table class="table">
  <caption>Доверенности активные</caption>
  <thead>
    <tr>
      <th>Контрагент</th>
      <th>ФИО</th>
      <th>Номенклатура</th>
      <th>Действие До</th>
      <th>Выписал</th>
    </tr>
  </thead>          
    <tbody>
	<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['GetArrayDover']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['GetArrayDover']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]["knt"];?>
</td>
      <td><?php echo $_smarty_tpl->tpl_vars['GetArrayDover']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]["fiz"];?>
</td>
      <td><?php echo $_smarty_tpl->tpl_vars['GetArrayDover']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]["nome"];?>
</td>
      <td><?php echo $_smarty_tpl->tpl_vars['GetArrayDover']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]["dtend"];?>
</td>
      <td><?php echo $_smarty_tpl->tpl_vars['GetArrayDover']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]["otv"];?>
</td>      
    </tr>
        <?php endfor; endif; ?>      
        </tbody>
        </table>            
        </div>
    </div>
<?php }else{ ?>
<div class="alert alert-error">Не достаточно прав!</div>
<?php }?><?php }} ?>